import { createRouter, createWebHashHistory } from 'vue-router'
import Index from '~/pages/Index.vue'
import About from '~/pages/About.vue'
import Login from '~/pages/Login.vue'
import NotFound from '~/pages/404.vue'

const routes = [{
    path: "/",
    component: Index
}, {
    path: "/login",
    component: Login
}, {
    path: "/about",
    component: About
}, {
    path: '/:pathMatch(.*)*',
    component: NotFound
}
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router